<?php

class Application_Form_Login extends Application_Form_Basic {
	
	public function init() {
		
		$this	->setAction('/account')
				->setMethod ( 'post' )
                ->setAttrib('id', 'form_login');
		
		$this->addElement ( 'text', 'login', array ('label' => 'Login:', 'filters' => array ('StringTrim' ) ) );
		$el = $this->getElement ( 'login' );
		$el->setRequired ( true )->addValidators ( array (array ('NotEmpty', true, array ('messages' => array ('isEmpty' => '��� ������������ ������������ �����!' ) ) ) ) );
		
		$this->addElement ( 'password', 'password', array ('label' => 'Password:' ) );
		$el = $this->getElement ( 'password' );
		$el->setRequired ( true )->addValidators ( array (array ('NotEmpty', true, array ('messages' => array ('isEmpty' => '������ �� ����� ���� ������!' ) ) ) ) );
		
		$this->addElement ( 'submit', 'send', array ('label' => 'OK' ));
	}
}

